<template>
	<view class="btn">
		<view class="btnView" :style="{'background-color':backgroundColor}">
			<text class="btnTxt" :style="{color:color}">{{btnName}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		name: "cust_btn",
		props:{
			btnName:String,
			backgroundColor:{
				typeof:String,
				default:"#094563"
			},
			color:{
				typeof:String,
				default:"#FFFFFF"
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style scoped lang="less">
	.btn {
		text-align: center;
		margin: 0 40rpx;

		.btnView {
			border-radius: 8px;
			padding: 20rpx 40rpx;

			.btnTxt {
				font-weight: 600;
				font-size: 14px;
				line-height: 20px;
			}
		}
	}
	
	.btn:active{
		opacity: 0.5;
	}
</style>